package com.cssl.controller;

import com.cssl.openFeign.DtsChartsClient;


import com.cssl.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/charts")
public class DtsChartsController {
    @Autowired
    private DtsChartsClient client;

    @PostMapping("/info")
    public Result info() {


        return client.info();

    }

    @PostMapping("/chart")
    public Result chart() {
        return client.chart();
    }
}
